import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/login',
      // component: () => import(/* webpackChunkName: "login" */ '../components/page/Login.vue'),
      component: () => import(/* webpackChunkName: "login" */ '../components/page/LoginCC.vue'),
      meta: { title: '登录' }
    },
    {
      path: '/',
      component: () => import(/* webpackChunkName: "home" */ '../components/common/Home.vue'),
      meta: { title: '主页面' },
      children: [
        {
          path: '/Monitoring',
          component: () => import(/* webpackChunkName: "dashboard" */ '../views/CleanerWork/HomeMonitoring.vue'),
          meta: { title: '车辆监控' }
        },
        {
          path: '/ExcelRubbishCheckInfo',
          component: () => import(/* webpackChunkName: "dashboard" */ '../views/CleanerWork/ExcelRubbishCheckInfo.vue'),
          meta: { title: '车辆行驶时长里程统计' }
        },
        {
          path: '/CarInOutStatistics',
          component: () => import(/* webpackChunkName: "table" */ '../views/StatisticsTable/CarInOutStatistics.vue'),
          meta: { title: '车辆进出厂统计' }
        },
        {
          path: '/StatisticsCity',
          component: () => import(/* webpackChunkName: "icon" */ '../views/StatisticsTable/StatisticsCity.vue'),
          meta: { title: '全市吨位统计' }
        },
        {
          path: '/StatisticsDistrict',
          component: () => import(/* webpackChunkName: "tabs" */ '../views/StatisticsTable/StatisticsDistrict.vue'),
          meta: { title: '按区吨位统计' }
        },
        {
          path: '/PictureDistrict',
          component: () => import(/* webpackChunkName: "form" */ '../views/StatisticsTable/PictureDistrict.vue'),
          meta: { title: '全市图形统计' }
        },
        {
          // 富文本编辑器组件
          path: '/PictureCity',
          component: () => import(/* webpackChunkName: "editor" */ '../views/StatisticsTable/PictureCity.vue'),
          meta: { title: '按区图形统计' }
        },
        {
          path: '/playback',
          name: 'playback',
          component: () => import(/* webpackChunkName: "donate" */ '../views/CleanerWork/TrackThePlayback.vue'),
          meta: { title: '轨迹回放' }
        },
        {
          // markdown组件
          path: '/rubbishThePlayback',
          component: () => import(/* webpackChunkName: "markdown" */ '../views/CleanerWork/RubbishThePlayback.vue'),
          meta: { title: '收集遗漏轨迹图' }
        },
        {
          path: '/ByPointNew',
          component: () => import(/* webpackChunkName: "table" */ '../views/WeightTable/ByPointNew.vue'),
          meta: { title: '挂桶点位称重' }
        },
        {
          path: '/ByPointNewHold',
          component: () => import(/* webpackChunkName: "table" */ '../views/WeightTable/ByPointNewHold.vue'),
          meta: { title: '整车点位称重' }
        },
        {
          path: '/ByCarNew',
          component: () => import(/* webpackChunkName: "table" */ '../views/WeightTable/ByCarNew.vue'),
          meta: { title: '挂桶车辆称重' }
        },
        {
          path: '/ByCarNewHold',
          component: () => import(/* webpackChunkName: "table" */ '../views/WeightTable/ByCarNewHold.vue'),
          meta: { title: '整车车辆称重' }
        },
        {
          path: '/WeightAlarm',
          component: () => import(/* webpackChunkName: "dashboard" */ '../views/WeightAlert/AlertHome.vue'),
          meta: { title: '称重报警' }
        },
        {
          path: '/PlannedRoute',
          component: () => import(/* webpackChunkName: "table" */ '../views/PlannedRoute/PlannedRoute.vue'),
          meta: { title: '路线规划' }
        },
        {
          path: '/ShowRoute',
          component: () => import(/* webpackChunkName: "table" */ '../views/PlannedRoute/ShowRoute.vue'),
          meta: { title: '路线展示' }
        },
        {
          path: '/ShowRoute1',
          component: () => import(/* webpackChunkName: "table" */ '../views/PlannedRoute/ShowRoute1.vue'),
          meta: { title: '区域路线规划' }
        },
        {
          path: '/RouteTimeStatistics',
          component: () => import(/* webpackChunkName: "table" */ '../views/PlannedRoute/RouteTimeStatistics.vue'),
          meta: { title: '规划路线分析' }
        },
        {
          path: '/RouteStatistics',
          component: () => import(/* webpackChunkName: "table" */ '../views/PlannedRoute/RouteStatistics.vue'),
          meta: { title: '收运点位分析' }
        },
        {
          path: '/RouteStatisticsToday',
          component: () => import(/* webpackChunkName: "table" */ '../views/PlannedRoute/RouteStatisticsToday.vue'),
          meta: { title: '当日收运点位分析' }
        },
        {
          name: 'RouteStatisticsMap',
          path: '/RouteStatisticsMap',
          component: () => import(/* webpackChunkName: "table" */ '../views/PlannedRoute/RouteStatisticsMap.vue'),
          meta: { title: '收运分析地图' }
        },
        {
          path: '/PlannedMap',
          component: () => import(/* webpackChunkName: "table" */ '../views/PlannedRoute/PlannedMap.vue'),
          meta: { title: '规划点位' }
        },
        {
          // markdown组件
          path: '/HUABAO_CCTV',
          component: () => import(/* webpackChunkName: "markdown" */ '../views/CleanerWork/HUABAO_CCTV.vue'),
          meta: { title: '监控视频' }
        },
        {
          path: '/moreCarVideo',
          component: () => import(/* webpackChunkName: "tabs" */ '../views/CleanerWork/moreCarVideo.vue'),
          meta: { title: '车辆视频' }
        },
        {
          // markdown组件
          path: '/vehicle',
          component: () => import(/* webpackChunkName: "markdown" */ '../views/message/vehicle.vue'),
          meta: { title: '车辆基础信息' }
        }, {
          // markdown组件
          path: '/place',
          component: () => import(/* webpackChunkName: "markdown" */ '../views/message/place.vue'),
          meta: { title: '垃圾点基础信息' }
          // },{
          //     // markdown组件
          //     path: '/TrackRoute',
          //     component: () => import(/* webpackChunkName: "markdown" */ '../views/CleanerWork/TrackRoute.vue'),
          //     meta: { title: '路线规划' }
        },

        {
          path: '/PlaceFactoryHome',
          component: () => import(/* webpackChunkName: "dashboard" */ '../views/FacilityManagement/PlaceFactoryHome.vue'),
          meta: { title: '处理站管理' }
        },

        {
          path: '/ProcessingCapacityQ',
          component: () => import(/* webpackChunkName: "dashboard" */ '../views/ProcessingCapacity/ProcessingCapacityQ.vue'),
          meta: { title: '处理量按区统计' }
        },
        {
          path: '/ProcessingCapacityZ',
          component: () => import(/* webpackChunkName: "dashboard" */ '../views/ProcessingCapacity/ProcessingCapacityZ.vue'),
          meta: { title: '处理量按站统计' }
        },
        {
          path: '/OperatingCostsQ',
          component: () => import(/* webpackChunkName: "dashboard" */ '../views/OperatingCosts/OperatingCostsQ.vue'),
          meta: { title: '运行费按区统计' }
        },
        {
          path: '/OperatingCostsZ',
          component: () => import(/* webpackChunkName: "dashboard" */ '../views/OperatingCosts/OperatingCostsZ.vue'),
          meta: { title: '运行费按站统计' }
        },
        {
          path: '/404',
          component: () => import(/* webpackChunkName: "404" */ '../components/page/404.vue'),
          meta: { title: '404' }
        },
        {
          path: '/403',
          component: () => import(/* webpackChunkName: "403" */ '../components/page/403.vue'),
          meta: { title: '403' }
        }
      ]
    },
    {
      path: '*',
      redirect: '/404'
    }
  ]
})
